package com.tobestronger.mypay.service;

import com.tobestronger.mypay.dao.entity.OrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tobestronger.mypay.service.enums.OrderStatus;

import java.util.List;

public interface OrderInfoService extends IService<OrderInfo> {

    List<OrderInfo> listOrderByCreateTimeDesc();

    String getOrderStatus(String orderNo);


    OrderInfo createOrderByProductId(Long productId, String paymentType);

    void saveCodeUrl(String orderNo, String codeUrl);


    void updateStatusByOrderNo(String orderNo, OrderStatus orderStatus);


    List<OrderInfo> getNoPayOrderByDuration(int minutes, String paymentType);


    OrderInfo getOrderByOrderNo(String orderNo);

}
